package com.ck.mybatis.plus.entity.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ck.mybatis.plus.anotation.Fields;
import com.ck.mybatis.plus.model.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 分页对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value = "User分页对象", description = "示例表")
public class UserPageDTO extends PageDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "名称")
    @Fields("like")
    private String name;

    private Integer delFlag;
    @ApiModelProperty(value = "年龄")
    @Fields("like")
    private Integer age;
    @ApiModelProperty(value = "邮箱")
    @Fields("eq")
    private String email;


}
